@import '@/app/styles/variables';

.floating_card {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.btn {
  width: 137px;
  height: 38px;
  font-size: 14px;
  font-style: normal;
  padding: 8px 24px;
  margin-top: 16px;
  font-weight: 600;
  line-height: 20px;
}

.premium {
  position: relative;
  margin-top: 35%;
  display: flex;
  width: 100%;
  padding: 32px 16px 32px 16px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  justify-content: center;
  border-radius: 32px;
  background: #fff;
  height: 100%;
}

.text {
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

.card_buttons_bought {
  position: relative;
  margin-top: 50%;
  display: flex;
  width: 100%;
  padding: 32px 16px 16px 16px;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 32px;
  background: #fff;
}

.titleBlock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  padding: 0px 16px 16px 16px;
  overflow: hidden;
}

.title {
  color: var(--Simple-Night, #000);
  font-size: 20px;
  width: 100%;
  max-width: 100%;
  font-style: normal;
  font-weight: 500;
  line-height: 26px;
}

.boughtButton {
  display: flex;
  padding: 16px;
  align-items: center;
  gap: 12px;
  width: 100%;
  align-self: stretch;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  border-radius: 16px;
  line-height: 26px;
  cursor: pointer;

  &:hover:not(.active) {
    background: var(--Simple-Gray-Morning, #f3f3f3);

    rect {
      stroke: #f3f3f3;
    }
  }
}

.already {
  padding: 15px;

  svg {
    margin-right: -6px;
    transform: translateY(-6%);
  }
}

.active {
  background: var(--Pastel-Blue, #ebf1fc);

  rect {
    stroke: #ebf1fc;
  }
}

.card_image {
  overflow: hidden;
  border-radius: 32px;
  background: #fefefe;
  position: absolute;
  display: flex;
  width: 100%;
  height: 336px;
  justify-content: center;
  align-items: center;
  z-index: 0;

  img {
    object-fit: cover;
  }
}

.card_buttons {
  position: relative;
  margin-top: 50%;
  display: flex;
  width: 100%;
  padding: 32px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border-radius: 32px;
  background: #fff;
}

.card_button {
  all: unset;
  background-color: #fff;
  user-select: none;
  cursor: pointer;
  display: flex;
  color: #000;
  width: 100%;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;

  &:hover {
    color: #337cec;

    .card_reviews {
      color: #337cec;
    }
  }
}

.card_actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card_action_props {
  display: inline-flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.back_button {
  position: absolute !important;
  top: -48px;
}

.back_mobile {
  display: none !important;
}

@include media(md) {
  .card_buttons {
    padding: 24px 24px 26px 24px;
    margin-top: 162px;
  }

  .card_image {
    height: 280px;
  }
}

@include media(sm) {
  .card_buttons {
    padding: 32px;
    margin-top: 319px;
  }

  .floating_card {
    width: 100%;
  }

  .floating_card {
    height: fit-content;
    background: #fff;
  }

  .card_buttons {
    position: absolute;
    top: unset;
    bottom: 55px;
    height: 20px;
    border-radius: 24px 24px 0 0;
    background: var(--simple-morning, #fff);
  }

  .card_button {
    display: none;
  }

  .back_mobile {
    display: flex !important;
  }

  .card_actions {
    top: unset;
    padding-right: 24px;
    padding-left: 16px;
    bottom: 54px;
    left: 0;
    right: 0;
    width: 100%;
    justify-content: space-between;
  }

  .card_image {
    position: relative;
    border-radius: 0;
    height: 336px;
    width: 100%;
    aspect-ratio: 1;
    background: #f3f3f3;
  }
}

@include media(sm) {
  .card_actions {
    bottom: 75px;
  }
}
